/*
 * Copyright (C) 2016 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#pragma once

//#include <cutils/properties.h>
#include "includes.h"
#include <linux/if.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>

#include "android_drv.h"
#include "common.h"
#include "driver_nl80211.h"
#include "linux_ioctl.h"
#include "wpa_supplicant_i.h"
#include "driver_i.h"

#define CMD_SUBTYPE_MIRACAST_MODE (5)

#define P2P_MGMT_DEVICE_PREFIX "p2p-dev-"

typedef struct android_wifi_priv_cmd {
    u64 buf;
    int used_len;
    int total_len;
} android_wifi_priv_cmd;

typedef struct driver_cmd_msg {
    uint16_t msg_type; // CMD_SUBTYPE_XX
    uint16_t msg_len;  // msg_data length
    char msg_data[];
} driver_cmd_msg;

int global_sigma_mode = 0;
